<div ng-controller="ConfessionCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'表白'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/confession/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"></span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'title'|translate}}</th>
                <th>{{'num'|translate}}</th>
                <th>{{'剩余时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in confession_list">
                <td>{{list.confession_activity_id}}</td>
                <td>{{list.name}}</td>
                <td>{{list.item_count}}</td>
                <td>
                    {{list.diff_time}}
                </td>
                <td>
                    <a href="#/confession/add?confession_activity_id={{list.confession_activity_id}}" class="sui-btn btn-success">{{'edit'|translate}}</a>
                    
                    <a href="#/confession/detail?confession_activity_id={{list.confession_activity_id}}" class="sui-btn btn-primary">{{'详情'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="pageSize" total="total_count" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>